import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'gather_interface_btn' })
export default class GatherInterfaceBtn extends BaseEntity {
  @Column({ type: 'varchar', length: 250, name: 'btn_code', comment: '按钮编码', unique: true })
  @ApiProperty()
  btnCode: string;

  @Column({ type: 'varchar', length: 250, name: 'btn_name', comment: '按钮名称' })
  @ApiProperty()
  btnName: string;

  @Column({ type: 'varchar', name: 'btn_json', nullable: true, comment: '调机界面配置JSON' })
  @ApiProperty()
  btnJson: string;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
